<template>
  <div>
    父组件
    <MyInput v-model:username="name" />
  </div>
</template>

<script lang="ts" setup name="vModel">
import MyInput from './MyInput.vue';
import { ref } from 'vue'
let name = ref('123')
</script>

<style lang="scss" scoped></style>
